﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Xml.Linq;

namespace LINQToolKit.Web
{
    public sealed class RequestResult
    {
        public string Message { get; set; }
        public int StatusCode { get; set; }
        public Exception Error { get; set; }

        public bool Success
        {
            get 
            { 
                return (this.Error == null) && 
                    (this.StatusCode == 200 || this.StatusCode == 201 || this.StatusCode == 202);
            }
        }
    }
}
